﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpaceGame.Gameplay.AI.Behaviors
{
    /// <summary>
    /// Base class for AI behaviors.
    /// </summary>
    public class Behavior
    {
        #region Fields
        /// <summary>
        /// Random number generator shared by all behaviors.
        /// </summary>
        protected static readonly Random random = new Random();
        #endregion

        #region Properties
        public bool IsActive
        {
            get; set;
        }
        
        /// <summary>
        /// The ship we are associated.
        /// </summary>
        protected IEntity Entity
        {
            get; private set;
        }
        #endregion

        #region Initialize
        public Behavior(IEntity ship)
        {
            Entity = ship;
            IsActive = false;
        }
        #endregion
    }
}
